var _ = require('lodash');

var color = 'red'
function dog(name,age,say){
    var name = name
    var age = age
    this.color = color

    return function dogSay(){
        var color = 'black'
        console.log("wang,wang")
        console.log(`age:${age}`)
        console.log(`age:${color}`)
        // say()
    
    }
}

console.log(color)
var dog1  = dog('han',12)
console.log(dog1.name)
console.log(_.capitalize(dog1.name))